﻿using System;

public class EventManager: PersistentSingleton<EventManager>
{
    private FactoryManger<Event, EventData> EventFactory;
    protected override void Awake()
    {
        base.Awake();

        EventFactory=new FactoryManger<Event, EventData>();
        EventFactory.LoadJson("Data/eventData.json");
    }
    public Event GetEvent(int id)=> EventFactory.GetInstance(id);
}
